package com.zh.yqbj;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@MapperScan("com.zh.yqbj.mapper")//扫描mapper
@EnableTransactionManagement //开启注解方式的事务管理
@EnableCaching
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true,exposeProxy = true)
public class YQBJApplication {

    public static void main(String[] args) {
        SpringApplication.run(YQBJApplication.class,args);
        log.info("服务已全部启动");
    }
}
